@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
	<style type="text/css">
		.table-responsive > .table-bordered{border:1px solid #e0e0e0;}
	</style>
@endsection
@section('content')
<div class="tables">
	<div class="table-responsive bs-example widget-shadow">
		<h4>供应商列表 :</h4>
		<table class="table table-bordered" style="text-align: center;">
			
			<tbody>
			@if(!null==$data)
				@foreach($data as $k => $v)
					<tr> 
						 <tr>
						      <th>&nbsp</th>
					          <td>&nbsp</td>
					   </tr>
						<tr> 
						<th style="text-align: center">numbers</th>
						<th scope="row" style="text-align: center">{{$v['s_id']}}</th>
						</tr> 
						<tr>
							<th style="text-align: center">suppliers</th>
							<td>{{$v['s_name']}}</td>
						</tr>
						<tr>
							<th style="text-align: center">所属行业</th>
							<td>{{$v['s_industry']}}</td>
						</tr>
						<tr>
							<th style="text-align: center">客户经理</th>
							<td>{{$v['s_manager']}}</td>
						</tr>
						<tr>
							<th style="text-align: center">联系电话</th>
							<td>{{$v['s_tel']}}</td>
						</tr>
						<tr>
							<th style="text-align: center;">公司地址</th>
							<td>{{$v['s_area']}}</td>
							
						</tr>
						<tr>
							<th style="text-align: center">操作</th>
							<td><a href="/admin/supplier/edit?id={{$v['s_id']}}">编辑</a></td>
						</tr>
					</tr>
				@endforeach
			@endif
			</tbody> 
		</table>
        @if(!null == $data)
        	<div style="float:right;">
        	{!! $data->appends($request)->render() !!}
        	</div>
        @endif
	</div>
</div>
@endsection
